package com.apop.common.mapper;


import org.apache.ibatis.annotations.*;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.util.List;
import java.util.Map;

/**
 * @author Jiayi Zheng
 * @date 2021/11/10 15:35
 * @Description: 通用mapper
 * @version V1.0
 */
@Mapper
public interface OneMapper {

    @Select({"${sql}"})
    List<Map> executeQuery(@Param("sql")String sql);


    @Insert({"${sql}"})
    int commonInsert(@Param("sql")String sql);


}
